<!-- Module PrestaTheme -->
{capture name=path}
    <a href="{$link->getModuleLink('prestatheme', 'myprojects', [], true)}">{l s='My projects'}</a>
    <span class="navigation-pipe">{$navigationPipe}</span>
    {$title}
{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}

<h2>{l s='View details' mod='prestatheme'}</h2>
{include file="$tpl_dir./errors.tpl"}
<div id="edit_project">
    <p class="submit1">
        <a class="button" href="{$link->getModuleLink('prestatheme', 'myprojects', ['edit'=>'1', 'id_project'=>$project->id], true)}" title="{l s='Edit informations' mod='prestatheme'}">
            <img src="{$img_dir}icon/pt_edit.png" alt="{l s='Edit' mod='prestatheme'}" class="icon" />
        </a>
        <a class="button" href="{$link->getModuleLink('prestatheme', 'myprojects', ['run-editor'=>'1', 'id_project'=>$project->id], true)}" title="{l s='Run the pretatheme editor' mod='prestatheme'}">
            <img src="{$img_dir}icon/pt_editor.png" alt="{l s='Theme Editor' mod='prestatheme'}" class="icon" />
        </a>
        <a class="button" href="{$link->getModuleLink('prestatheme', 'myprojects', ['make-package'=>'1', 'id_project'=>$project->id], true)}" title="{l s='Generate the theme' mod='prestatheme'}">
            <img src="{$img_dir}icon/pt_packager.png" alt="{l s='Make package' mod='prestatheme'}" class="icon" />
        </a>
    </p>
    <fieldset>
        <p class="required text">
            <label id="label_name">{l s='Project name' mod='prestatheme'}</label>
            <span>{$project->name}</span>
        </p>
        <p class="required text">
        	<label id="label_id_cms">{l s='The CMS for the project' mod='prestatheme'}</label>
            <span>{$project->getCMSName()}</span>
        </p>
        {if $project->product}
        <p class="required text">
            <label id="label_product_name">{l s='Associated Product' mod='prestatheme'}</label>
            <span><a href="{$link->getProductLink($project->product->id, $project->product->link_rewrite, $project->product->category, null, null, $id_shop)|escape:'htmlall':'UTF-8'}" title="{$project->product->name}">{$project->product->name}</a></span>
        </p>
        {/if}
        <p class="required text">
            <label id="label_is_public">{l s='Is public' mod='prestatheme'}</label>
            <span>{if $project->is_public}{l s='Yes' mod='prestatheme'}{else}{l s='No' mod='prestatheme'}{/if}</span>
        </p>
        <p class="required text">
            <label id="label_name">{l s='Description' mod='prestatheme'}</label>
            <span>{$project->description}</span>
        </p>
        <p class="required text">
            <label id="label_date_add">{l s='Created On' mod='prestatheme'}</label>
            <span>{dateFormat date=$project->date_add full=1}</span>
        </p>
        <p class="required text">
            <label id="label_date_upd">{l s='Last Update On' mod='prestatheme'}</label>
            <span>{dateFormat date=$project->date_upd full=1}</span>
        </p>
    </fieldset>
</div>
<!-- /Module PrestaTheme -->
